<?php 
 
class CheckField extends fpp_tdp_Model{

  function __construct($DataObjects){
    parent::__construct($DataObjects);
  }

  public function __toString(){ 
    $field = $this->field_name;
    $choices = $this->args->choices;
    $checks[$this->field_value] = $this->field_value;
    $check = ($this->field_value == 1) ? TRUE : FALSE;
    return form::checkbox($field, '1',$check).'<span>'.$this->args->verbose.'</span>';
  }

}

?>